package com.atguigu.springboot_demo.service.impl;

import com.atguigu.springboot_demo.service.AdminService;
import com.atguigu.springboot_demo.entity.Admin;
import com.atguigu.springboot_demo.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper ;
    @Override
    public List<Admin> getAllAdmin() {
        return adminMapper.selectAll() ;
    }
}
